<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="t_bar"><span class="color_red">*</span>资产情况 </div>
<input type="hidden" value="2017-12-31" id ="compareDate" label="2017-12-31"/> 
	<table class="t_css" width="100%" id="org_fund_info" border="0" cellpadding="0"
	    cellspacing="1">
		<col style="width: 17%"/>
		<col style="width: 17%"/>
		<col style="width: 15%"/>
		<col style="width: 17%"/>
		<col style="width: 20%"/>
		<col style="width: 14%"/>
		<tr>
			<td align="right">固定资产（万元）：</td>
			<td align="center">
			 	<input name="proposal/fund_gd" id="fund_gd" label="固定资产" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
			 	class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/fund_gd" />"/>
			</td>
			<td align="right">流动资产(万元)：</td>
			<td align="center">
			 	<input name="proposal/fund_ld" id="fund_ld" label="流动资产" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
			 	class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/fund_ld" />"/>
			</td>
			<td align="right">研发仪器设备原值（万元）：</td>
			<td align="center">
			 	<input name="proposal/fund_yfsb" id="fund_yfsb" label="研发仪器设备原值" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
			 	class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/fund_yfsb" />"/>
			</td>
		</tr>
		
		<tr>
			<td align="right">办公和科研场所：</td>
			<td  colspan="5">自有产权：
			 	<input name="proposal/cs_zycq" id="cs_zycq" label="办公和科研场所-->自有产权" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
			 	class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/cs_zycq" />"/>
				平方米；&nbsp;&nbsp;
				租借：
			 	<input name="proposal/cs_zl" id="cs_zl" label="办公和科研场所-->租借" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
			 	class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/cs_zl" />"/>
			 	平方米。
			</td>
		</tr>
	</table> 
	<br/>
	<div class="t_bar"><span class="color_red">*</span>上一年度财务情况</div>
	<table class="t_css" width="100%" id="fund_two_year" border="0" cellpadding="0"
	    cellspacing="1">
		<col style="width: 33%"/>
		<col style="width: 33%"/>
		<tr align="center">
			<td>年 度</td>
			<td><span name="proposal/fund_last_year1">${param.statYear-1 }</span>年</td>
		</tr>
		<tr align="center">
			<c:set var="year1">${param.statYear-1 }</c:set>
			<td>总收入（万元）</td>
			<td>
				<input name="fund/fund0_year1" id="fund0_year1" label="${year1 }总收入" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund0_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>政府及财政补助收入（万元）</td>
			<td>
				<input name="fund/fund1_year1" id="fund1_year1" label="${year1 }政府及财政补助收入" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund1_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>引入风险投资金额（万元）</td>
			<td>
				<input name="fund/fund2_year1"  id="fund2_year1" label="${year1 }引入风险投资金额" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund2_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>成果转化收入（万元）</td>
			<td>
				<input name="fund/fund3_year1"  id="fund3_year1" label="${year1 }成果转化收入" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund3_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>税前利润（万元）</td>
			<td>
				<input name="fund/fund4_year1"  id="fund4_year1" label="${year1 }税前利润" type="text" onfocus="InitInput.setNumber(this,9,2,2,'',true);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund4_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>研发费用（万元）</td>
			<td>
				<input name="fund/fund5_year1"  id="fund5_year1" label="${year1 }研发费用" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund5_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>技术合同交易额（万元）</td>
			<td>
				<input name="fund/fund6_year1"  id="fund6_year1" label="${year1 }技术合同交易额" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund6_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>非财政资金投入占研发费用的比例（%）</td>
			<td>
				<input name="fund/fund7_year1"  id="fund7_year1" label="${year1 }非财政资金投入占研发费用的比例" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund7_year1" />"/>
			</td>
		</tr>
		<tr align="center">
			<td>职工教育经费占工资总额比例（%）</td>
			<td>
				<input name="fund/fund8_year1"  id="fund8_year1" label="${year1 }职工教育经费占工资总额比例" type="text" onfocus="InitInput.setNumber(this,9,2,2);" 
 				class="input_css required "  style="text-align: right;"  value="<x:out select="$xmlData/data/fund/fund8_year1" />"/>
			</td>
		</tr>
	</table>
	<br/>
	<div class="t_bar">科研仪器设备情况（10万元及以上）</div>
		<table  id="eq_table1" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
					<col style="width: 5%"/>
					<col style="width: 5%"/>
					<col style="width: 22%"/>
					<col style="width: 12%"/>
					<col style="width: 12%"/>
					<col style="width: 12%"/>
					<col style="width: 12%"/>
					<col style="width: 20%"/>
				<thead >
						<tr style="border:1px solid #B7D1E6">
							<th class="TblHead" align="center">选择</th>
							<th class="TblHead" align="center">序号</th>
							<th class="TblHead" align="center">仪器设备名称</th>
							<th class="TblHead" align="center">型号</th>
							<th class="TblHead" align="center">数量</th>
							<th class="TblHead" align="center">单价（万元）</th>
							<th class="TblHead" align="center">购买时间</th>
							<th class="TblHead" align="center">使用政府补助资金（万元）</th>
						</tr>
				</thead>
				<tbody id="tab">
						<tr style="display:none">
							<td align="center">
								<input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="seleq_table1" >
							</td>
							<td align="center">
								<span name="equipments|equipment[0]@seq_no" >[index]</span> 
							</td>
							<td align="center">
								<input type="text" name="equipments|equipment[0]|sname" class="hn_iuput_kuang1 required maxlength:50" style="width:80%" label="仪器设备名称" value="" maxlength="50"/>
							</td>
							<td align="center">
								<input type="text" name="equipments|equipment[0]|eq_type" class="hn_iuput_kuang1 required maxlength:50" style="width:80%" label="型号" value="" maxlength="50"/>
							</td>
							<td align="center">
								<input type="text" name="equipments|equipment[0]|eq_num" onfocus="InitInput.setNumber(this,3,0,0)" class="hn_iuput_kuang1 required maxlength:50" style="width:80%;text-align: right;" label="数量" value=""  maxlength="50"/>
							</td>
							<td align="center">
								<input type="text" name="equipments|equipment[0]|price_each" onfocus="InitInput.setNumber(this,9,2,2)" class="hn_iuput_kuang1 required maxlength:50 " style="width:80%; text-align: right;" label="单价"  value="" maxlength="50" />
							</td>
							<td align="center">
								<cpt:date id="equipment_buy_date_[0]" name="equipments|equipment[0]|buy_date" label="购买时间" value="" className=" required  date dateCompareBeforeE:equipment_buy_date_[0]:compareDate  "  size="8" ></cpt:date>
							</td>
							<td align="center">
								<input type="text" name="equipments|equipment[0]|price_government" onfocus="InitInput.setNumber(this,9,2,2)" class="hn_iuput_kuang1  maxlength:50 required"   style="width:80%; text-align: right;" label="使用政府补助资金" value="" maxlength="50" />
							</td>
						</tr>
						
						
						<c:set value="0" var="index" scope="page"/>
						<x:forEach select="$xmlData/data/equipments/equipment" var="equipment">
						
						<c:choose>
							<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
							<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
						</c:choose>
						<tr >
							<td align="center">
								<input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="seleq_table1" >
							</td>
							<td align="center">
								<span   name="equipments/equipment[${flag}${index}]@seq_no" ><x:out select="$equipment/@seq_no"/></span> 
							</td>
							
							<td align="center">
								<input type="text" name="equipments/equipment[${flag}${index}]/sname" value="<x:out select="$equipment/sname" />" class="hn_iuput_kuang required maxlength:50" style="width:80%" label="仪器设备名称 " maxlength="50"/>
							</td>
							<td align="center">
								<input type="text" name="equipments/equipment[${flag}${index}]/eq_type" class="hn_iuput_kuang1 required maxlength:50" style="width:80%" label="型号" value="<x:out select="$equipment/eq_type"/>" maxlength="50"/>
							</td>
							<td align="center">
								<input type="text" name="equipments/equipment[${flag}${index}]/eq_num" onfocus="InitInput.setNumber(this,3,0,0)" class="hn_iuput_kuang1 required maxlength:50" style="width:80%;text-align: right;" label="数量" value="<x:out select="$equipment/eq_num"/>"  maxlength="50"/>
							</td>
							<td align="center">
								<input type="text" name="equipments/equipment[${flag}${index}]/price_each" onfocus="InitInput.setNumber(this,9,2,2)" class="hn_iuput_kuang1 required maxlength:50 " style="width:80%; text-align: right;" label="单价"  value="<x:out select="$equipment/price_each"/>" maxlength="50" />
							</td>
							<td align="center">
								<c:set var="buy_date"><x:out select="$equipment/buy_date"/></c:set>
								<cpt:date id="equipment_buy_date_[${flag}${index}]" name="equipments/equipment[${flag}${index}]/buy_date" label="购买时间" value="${buy_date }" className=" required  date  dateCompareBeforeE:equipment_buy_date_[${flag}${index}]:compareDate"  size="8" ></cpt:date>
							</td>
							<td align="center">
								<input  type="text" name="equipments/equipment[${flag}${index}]/price_government" onfocus="InitInput.setNumber(this,9,2,2)" class="required hn_iuput_kuang1  maxlength:50 " style="width:80%; text-align: right;" label="使用政府补助资金"  value="<x:out select="$equipment/price_government"/>" maxlength="50" />
							</td>
						
						</tr>
						<c:set value="${index+1}" var="index" scope="page"/>
						<script type="text/javascript">
							showAllDateTag("eq_table1");
						</script>
						</x:forEach>
					</tbody>
				</table>
				<table width="98%" align="center">
						<tr >
							<td>
								<input class="button_02" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('eq_table1',999,'科研仪器设备情况（10万元及以上）')){addNewRow('eq_table1');showDateTag('eq_table1');}try{top.resizeFrame();}catch(e){};changeCss('eq_table1');">
								<input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('eq_table1','seleq_table1');changeCss('eq_table1');">
								<input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('eq_table1','seleq_table1');changeCss('eq_table1');">
								<input class="button_02" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('eq_table1','条科研仪器设备情况（10万元及以上）');changeCss('eq_table1');">
							</td>
						</tr>
				</table>
<script type="text/javascript">

function changeCss(id) {
	$("#"+id+">tbody>tr:odd").each(function(){
		$(this).removeClass().addClass("li_1");
	});
	$("#"+id+">tbody>tr:even").each(function(){
		$(this).removeClass().addClass("li_2");
	});
}

</script>		
